package com.example.seed.web;


import com.example.seed.core.*;
import com.example.seed.entity.SysUser;
import com.example.seed.service.SysUserRepository;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

import java.util.Collection;
import java.util.List;


@RestController
@RequestMapping("/")
public class IndexController {
    private static final org.slf4j.Logger log
            = org.slf4j.LoggerFactory.getLogger(IndexController.class);

    @Resource
    private SysUserRepository userRepository;

    @GetMapping
    public SysUser home(@RequestBody PageRequest<SysUser> pageRequest) {
        return userRepository.findById(1L).get();
    }
}